const ua = typeof window === 'object' ? window.navigator.userAgent : ''; 

// 是否是iPhone
export const isIphone = () => ua.indexOf("iPhone") > -1;

// 是否是iPad
export const isIpad = () => ua.indexOf("iPad") > -1;

// 是否在苹果设备
export const isApple = () => isIphone() || isIpad();